﻿@model List<bonus.Models.User>

@{
	Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
	ViewBag.Title = "注册用户";
}

@section Top {
	@Html.Partial("_Top")
}
<div class="container-fluid">
	<ol class="breadcrumb">
		<li class="breadcrumb-item">
			个人中心
		</li>
		<li class="breadcrumb-item active">注册用户</li>
	</ol>

	<div class="card card-register mx-auto mt-5">
		<div class="card-header">注册用户</div>
		<div class="card-body">
			<form class="register">
				<div class="form-group">
					<div class="form-row">
						<div class="col-md-6">
							<label for="exampleInputEmail1">用户名</label>
							<input class="form-control" id="user" type="text" name="user" aria-describedby="user" placeholder="请输入用户名">
						</div>
						<div class="col-md-6">
							<label for="oldPaw">手机号</label>
							<input class="form-control" id="mobile" type="text" name="mobile" aria-describedby="mobile" placeholder="请输入手机号">
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="form-row">
						<div class="col-md-6">
							<label for="newPaw1">推荐人编号</label>
							<input class="form-control" id="MSuperior" type="text" name="MSuperior" aria-describedby="MSuperior" placeholder="请输入推荐人编号">
						</div>
						<div class="col-md-6">
							<label for="newPaw1">安置人编号</label>
							<input class="form-control" id="expSuperior" type="text" name="expSuperior" aria-describedby="expSuperior" placeholder="请输入安置人编号">
						</div>
					</div>
				</div>
                @*<div class="form-group">
                    <label for="MoreUser">多用户绑定</label>
                    <input class="form-control" id="MoreUser" type="text" name="MoreUser" aria-describedby="MoreUser" placeholder="中间以&quot;|&quot;间隔  例如:SC1001|SC1002">
                </div>*@
				<div class="form-group">
					<label for="newPaw">所属服务中心/公司编号</label>

					@if (Model == null || Model.Count == 0)
					{
						<input class="form-control" id="Content" type="text" name="Content" aria-describedby="Content" placeholder="请输入所属服务中心/公司编号">
					}
					else
					{
						<select class="form-control selectpicker" name="Content" id="Content">
							<option value="">无</option>
							@foreach (var item in Model)
							{
								<option value="@item.NO">@(bonus.Models.User.TypeClass.GetType(item.UserType) + "->" + item.Name + "->" + item.NO) </option>
							}
						</select>
					}

					@*<input class="form-control" id="Content" type="text" name="Content" aria-describedby="Content" placeholder="请输入所属服务中心/公司编号">*@
				</div>
				<div class="form-group">
					<label for="newPaw1">类型</label>
					<select class="form-control selectpicker" name="district" id="type">
						<option value="@bonus.Models.User.TypeClass.COMPANY">公司</option>
						<option value="@bonus.Models.User.TypeClass.CONTENT">服务中心</option>
						<option value="@bonus.Models.User.TypeClass.User">用户</option>
					</select>
				</div>
				<a class="btn btn-primary btn-block" href="javascript:void(0)" onclick="submit()">注册</a>
			</form>
			@*<div class="text-center">
					<a class="d-block small mt-3" href="/Member/RetrievePaw">忘记密码</a>
				</div>*@
		</div>
	</div>
</div>
<script src="~/LinScript/bootstrap-validator/bootstrapValidator.min.js"></script>
<link href="~/LinScript/bootstrap-validator/bootstrapValidator.min.css" rel="stylesheet" />
<script src="~/LinScript/bootstrap-validator/zh_CN.js"></script>
<script src="~/Scripts/sb-admin.js"></script>
<script src="~/Scripts/AddUser.js"></script>